﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrIdNumber.ascx.cs" Inherits="controls_usrIdNumber" %>
<span class="indicator">
    <asp:DropDownList ID="ddlIdPrefix" runat="server" ToolTip="Choose Prefix Character" CssClass="input" Width="55px">
        <asp:ListItem Selected="True" Value="-1">NA</asp:ListItem>
        <asp:ListItem Value="S">S</asp:ListItem>
        <asp:ListItem Value="T">T</asp:ListItem>
        <asp:ListItem Value="F">F</asp:ListItem>
        <asp:ListItem Value="G">G</asp:ListItem>
    </asp:DropDownList>
</span><span class="indicator">
    <%--Choose Id No Intial character.--%>
    <asp:CustomValidator ID="csvIdPrefix" runat="server" ControlToValidate="ddlIdPrefix"
        ErrorMessage="" Text="" ClientValidationFunction="IdPrefixClientValidate" OnServerValidate="IdPrefixServerValidation"
        CssClass="validationErrorControl" Display="Dynamic"></asp:CustomValidator></span>
<span class="indicator">
    <asp:TextBox ID="txtIdNumber" runat="server" MaxLength="7" Width="82px" ToolTip="Enter 7 digits" CssClass="input"></asp:TextBox>
</span><span class="indicator">
    <%--Require ID Number--%>
    <asp:RequiredFieldValidator ID="rfvIdNumber" runat="server" ControlToValidate="txtIdNumber"
        ErrorMessage="" CssClass="validationErrorControl" Display="Dynamic" Text=""></asp:RequiredFieldValidator>
</span><span class="indicator">
    <%--ID number must be 7 digits numbers values.--%>
    <asp:RegularExpressionValidator ControlToValidate="txtIdNumber" CssClass="validationErrorControl"
        ID="revIdNumberLength" Display="Dynamic" ValidationExpression="[0-9]{7}" runat="server"
        ErrorMessage="" Text="">
    </asp:RegularExpressionValidator>
</span><span class="indicator">
    <%--NRIC/FIN number is not valid.--%>
    <asp:CustomValidator ID="csvIdNumber" runat="server" ClientValidationFunction="CheckIdNumberClientValidate"
        ControlToValidate="txtIdNumber" CssClass="validationErrorControl" Display="Dynamic"
        ErrorMessage="" OnServerValidate="CheckIdNumberServerValidation" Text="">
    </asp:CustomValidator>
</span><span class="indicator">
    <asp:DropDownList ID="ddlIdPostfix" runat="server" ToolTip="Choose last character" CssClass="input" Width="55px">
        <asp:ListItem Value="-1" Selected="True">NA</asp:ListItem>
        <asp:ListItem Value="A">A</asp:ListItem>
        <asp:ListItem Value="B">B</asp:ListItem>
        <asp:ListItem Value="C">C</asp:ListItem>
        <asp:ListItem Value="D">D</asp:ListItem>
        <asp:ListItem Value="E">E</asp:ListItem>
        <asp:ListItem Value="F">F</asp:ListItem>
        <asp:ListItem Value="G">G</asp:ListItem>
        <asp:ListItem Value="H">H</asp:ListItem>
        <asp:ListItem Value="I">I</asp:ListItem>
        <asp:ListItem Value="J">J</asp:ListItem>
        <asp:ListItem Value="K">K</asp:ListItem>
        <asp:ListItem Value="L">L</asp:ListItem>
        <asp:ListItem Value="M">M</asp:ListItem>
        <asp:ListItem Value="N">N</asp:ListItem>
        <asp:ListItem Value="O">O</asp:ListItem>
        <asp:ListItem Value="P">P</asp:ListItem>
        <asp:ListItem Value="Q">Q</asp:ListItem>
        <asp:ListItem Value="R">R</asp:ListItem>
        <asp:ListItem Value="S">S</asp:ListItem>
        <asp:ListItem Value="T">T</asp:ListItem>
        <asp:ListItem Value="U">U</asp:ListItem>
        <asp:ListItem Value="V">V</asp:ListItem>
        <asp:ListItem Value="W">W</asp:ListItem>
        <asp:ListItem Value="X">X</asp:ListItem>
        <asp:ListItem Value="Y">Y</asp:ListItem>
        <asp:ListItem Value="Z">Z</asp:ListItem>
    </asp:DropDownList>
</span><span class="indicator">
    <%--Choose Id No last character.--%>
    <asp:CustomValidator ID="csvIdPostfix" runat="server" ControlToValidate="ddlIdPostfix"
        ErrorMessage="" Text="" OnServerValidate="IdPostfixServerValidation" ClientValidationFunction="IdPostfixClientValidate"
        CssClass="validationErrorControl" Display="Dynamic"></asp:CustomValidator>
</span>